package com.example.park2301

import android.content.Context
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ImageView
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.setupWithNavController
import com.alibaba.android.arouter.facade.annotation.Route
import com.bumptech.glide.Glide
import com.example.lib_base.mvvm.BaseViewActivity
import com.example.park2301.databinding.ActivityMainBinding
import com.youth.banner.loader.ImageLoader
import dagger.hilt.android.AndroidEntryPoint
@Route(path = "/app/MainActivity")
@AndroidEntryPoint
class MainActivity : BaseViewActivity<ActivityMainBinding>() {
   // var imgs = mutableListOf<String>()
    override fun initView() {
//        imgs.add("https://developer.huawei.com/allianceCmsResource/resource/HUAWEI_Developer_VUE/images/homeNew/banner4-1124.jpg")
//        imgs.add("https://developer.huawei.com/images/new-content/develop/img_DLP_develop_gailan_deveco_studio.png")
//        imgs.add("https://developer.huawei.com/images/new-content/Promotion-and-Monetization/ads-12800500.png")
//        binding.banner.setImages(imgs)
//            .setImageLoader(object :ImageLoader(){
//                override fun displayImage(context: Context?, path: Any?, imageView: ImageView?) {
//                    if (context!=null&&imageView!=null&&path!= null){
//                        Glide.with(context).load(path).into(imageView)
//                    }
//                }
//            }).start()
        val navHostFragment =supportFragmentManager.findFragmentById(R.id.fragmentContainerView) as NavHostFragment
        val navController =navHostFragment.navController
        binding.bottom.setupWithNavController(navController)
    }

    override fun initData() {

    }

}